package com.lzxuni;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * EurekaServer7001_App
 *
 * @author liuzp
 * @version 1.0
 * @createTime 2019-06-20 23:54
 * @description Eureka服务注册中心微服务
 **/

@SpringBootApplication
@EnableEurekaServer // EurekaServer服务器端启动类,接受其它微服务注册进来
public class EurekaServer7001_App extends SpringBootServletInitializer {

    public static void main(String[] args)
    {
        SpringApplication.run(EurekaServer7001_App.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(EurekaServer7001_App.class);
    }
}
